package com.nuc.wxh.vaccine_appointment.vaccines.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.nuc.wxh.vaccine_appointment.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 医院疫苗设置
 * </p>
 *
 * @author 王鑫浩
 * @since 2021-03-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "HospitalVaccine对象", description = "医院疫苗设置")
public class HospitalVaccine extends BaseEntity {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "所属医院id")
    private String hospitalId;
    @ApiModelProperty(value = "所属医院名称")
    private String hospitalName;

    @ApiModelProperty(value = "疫苗id")
    private String vaccineId;
    @ApiModelProperty(value = "疫苗名称")
    private String vaccineName;

    @ApiModelProperty(value = "疫苗生产者")
    private String vaccineManufacturer;

    @ApiModelProperty(value = "疫苗分类")
    private String vaccineClassification;

    @ApiModelProperty(value = "疫苗库存数量")
    private Integer vaccineNumber;


    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Integer isDeleted;

    @Version
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "乐观锁")
    private Integer version;


}
